package net.xgclass.online_xgclass.service;

import net.xgclass.online_xgclass.model.entity.Chapter;
import net.xgclass.online_xgclass.model.entity.Episode;
import net.xgclass.online_xgclass.model.entity.Video;
import net.xgclass.online_xgclass.model.entity.VideoBanner;
import org.springframework.web.multipart.MultipartFile;

import java.util.List;

public interface VideoService {

    List<Video> listVideo();

    List<VideoBanner> listBanner();

    Video findDetailById(int videoId);

    List<Video> listVideoDetail();

    List<Video> videoPageInfo(int pagenum, int pagesize);

    String uploadFileImg(MultipartFile file);

    int addVideo(Video video);

    List<Chapter> queryChaEpiByVideoId(Integer videoId);

    String uploadVideo(MultipartFile file);

    int addChapter(Chapter chapter);

    int addEpisode(Episode episode);

    List<VideoBanner> videoBannerPageInfo(int pagenum, int pagesize);

    int editCourse(Video video);

    int removeCourse(Integer id);

    int removeChapter(Integer id);

    int removeEpisode(Integer id);

    int editChapter(Chapter chapter);

    int removeEpisodeByChapterId(Integer id);

    int removeChapterByChapterId(Integer id);

    int removeEpisodeByEpisodeId(Integer id);

    int editEpisode(Episode episode);

    int addBanner(VideoBanner videoBanner);

    int editBanner(VideoBanner videoBanner);

    int removeBanner(Integer id);
}
